<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <p v-if="gender===1">性别：男</p>
        <p v-else>女</p>
        <hr>
        <p v-if="score>90">优秀</p>
        <p v-else-if="score>80">良好</p>
        <p v-else-if="score>70">及格</p>
        <p v-else>不及格</p>
    </div>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.7.16/dist/vue.js"></script>
    <script>
        const app = new Vue({
            el:'#app',
            data:{
                gender:1,
                score:81
            }
        })
    </script>
</body>
</html>